package com.zx.chatroom.po;

import javax.persistence.*;
import java.util.Date;

/**
 * User entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "s_user")
public class User implements java.io.Serializable {

	// Fields

	private String id;
	private String loginId;
	private String password;
	private String userName;
	private Date createTime;
	private Date loginDate;
	private Integer status;
	private Integer loginTimes;
	private String remark;
	private String defProject;
	private String mark;

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String id) {
		this.id = id;
	}


	public User(String id, String loginId, String password, String userName,
			Date createTime, Date loginDate, Integer status,
			Integer loginTimes, String remark, String defProject, String mark) {
		super();
		this.id = id;
		this.loginId = loginId;
		this.password = password;
		this.userName = userName;
		this.createTime = createTime;
		this.loginDate = loginDate;
		this.status = status;
		this.loginTimes = loginTimes;
		this.remark = remark;
		this.defProject = defProject;
		this.mark = mark;
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false, length = 64)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "LOGINID", length = 32)
	public String getLoginId() {
		return this.loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	@Column(name = "PASSWORD", length = 64)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "USERNAME", length = 50)
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATETIME")
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LOGINDATE", length = 19)
	public Date getLoginDate() {
		return this.loginDate;
	}

	public void setLoginDate(Date loginDate) {
		this.loginDate = loginDate;
	}

	@Column(name = "STATUS")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "LOGINTIMES")
	public Integer getLoginTimes() {
		return this.loginTimes;
	}

	public void setLoginTimes(Integer loginTimes) {
		this.loginTimes = loginTimes;
	}

	@Column(name = "REMARK", length = 100)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "DEFPROJECT", length = 64)
	public String getDefProject() {
		return this.defProject;
	}

	public void setDefProject(String defProject) {
		this.defProject = defProject;
	}
	@Column(name = "MARK", length = 64)
	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}
}